/*
 * Copyright (c) 2023, LXMS (lxinet.cn).
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package cn.lxinet.lxms.system.vo;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 菜单
 *
 * @author zcx
 * @date 2023/07/20
 */
@Data
@Schema(description = "菜单")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SysMenuVo implements Serializable{
    private static final long serialVersionUID = 1L;

    @Schema(description = "菜单ID")
    private Long id;

    @Schema(description = "菜单名称")
    private String name;

    @Schema(description = "父菜单ID")
    private Long parentId;

    @Schema(description = "顺序")
    private Integer seq;

    @Schema(description = "地址")
    private String url;

    @Schema(description = "打开方式（item页面 _blank新窗口）")
    private String target;

    @Schema(description = "类型（0目录 1菜单 2按钮）")
    private Integer type;

    @Schema(description = "状态（0显示 1隐藏）")
    private Integer status;

    @Schema(description = "权限标识")
    private String permission;

    @Schema(description = "菜单图标")
    private String icon;

    @Schema(description = "下级菜单列表")
    private List<SysMenuVo> children;

}